package com.stwyj.sbd.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *<p>
 * 用户信息实体
 *</p>
 *
 * @author stwyj
 * @since 2018/11/30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserDto {
    /**
     * 用户id
     */
    @NotNull(message = "id不能为空")
    private Integer id;

    /**
     * 用户名称
     */
    @Size(max = 10, message = "名称长度不能超过10")
    private String name;
}
